<template>
  <div class="code-block">
      <div class="descript_block">
        <slot name="descript">
          slot default default
        </slot>
      </div>
      <div class="mainDemo_block">
        <slot name="mainDemo" class="mainDemo_wrap">
          slot demo default
        </slot>
      </div>
      <div class="block_control">
        <div class="inner_text">
          <i>test</i>
        </div>
      </div>
  </div>
</template>

<script>
export default {
    name:'codeBlock',
    data(){
        return{

        }
    },
    props:{

    },
    computed:{},
    watch:{},
    methods:{},
    created(){
        
    },
    mounted(){

    },
}
</script>

<style lang="scss" scoped>
  .code-block{
    transition: all 0.3s ease;
    &:hover{
      box-shadow: 0px 3px 14px 0px rgba(0, 0, 0, 0.2);
    }
    .descript_block{
      background: rgb(255, 255, 255);
      border: 1px solid rgb(200, 213, 219);
      padding: 12px;
        p{
          margin: 0 !important;
        }
    }
    .mainDemo_block{
      margin: 0;
      padding: 0;
      background: rgb(226, 226, 226);
      padding: 24px;
      font-size: 14px;
      pre{
        margin: 0;
      }
    }
    .block_control{
      height: 40px;
      text-align: center;
      border: 1px solid rgb(200, 213, 219);
      .inner_text{
        height: 100%;
        font-size: 12px;
        cursor: pointer;
        i{
          display: inline-flex;
          align-items: center;
          height: 100%;
          transition: all 0.4s ease-in;
        }
      }
    }
  }
</style>